<template>
<div class="header-container">
    <div class="header" >   
            <div class="icon-back" v-on:click="back"></div>        
            <div class="icon-more" ></div>            
    </div> 
    <div class="bg">
        <div class="pic">
            
        </div>
        <div class="content">
            <div class="title">超值角色专场</div>
            <div class="txt">每晚八点，限量更新~</div>
        </div>


    </div>  
    
</div>
</template>
<script>

export default {
    name:'RolesHeader',
    data(){
        return{
          
        }
    },
    methods:{
    back(){
        this.$router.go(-1);//返回上一层
    },

    }
    
}
</script>
<style lang="scss" scoped>
.header {
    position: fixed;
    top: 0;
    z-index: 4;
    width: 100%;
    height: rem(130);
    min-width: 320px;
    max-width: 750px;
    background-color: #5883c0;
    .title{
        width: 100%;
        height: rem(130);
        line-height: rem(130);
        text-align: center;
        font-size: rem(45);
        font-weight: 700;
    }    
    .icon-more {
        position: absolute;
        top: rem(40);
        right: rem(40);
        width: rem(60);
        height: rem(60);
        background: url(../../../assets/imgs/sharewhite.svg) no-repeat 50% 50%;
        background-size: auto 100%;
        cursor: pointer;
    }
    .icon-back{
        position: absolute;
        top: rem(40);
        left: rem(40);
        width: rem(60);
        height: rem(60);
        background: url(../../../assets/imgs/backwhite.svg) no-repeat 50% 50%;
        background-size: auto 100%;
        cursor: pointer;
    }
}
.bg{
    display: flex;
    width: 100%;
    height: rem(270);
    margin-top: rem(130);
    background-color: #5883c0;
    padding: rem(40);
    .pic{
        width:rem(180);
        height: rem(180);
        background: url(../../../assets/imgs/r2.png) no-repeat 50% 50%;
        background-size: auto 100%;
    }
    .content{
        flex: 1;
        margin-left: rem(50);
        .title{
            width: 100%;
            height: rem(100);
            line-height: rem(100);
            font-size: rem(48);
            color: #fff;
        }
        .txt{
            width: 100%;
            font-size: rem(40);
            color: #fff;
            opacity: .6

        }
    }
}



</style>